<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-bind设置标签属性</title>
</head>

<body>
    <div>
        <a href="javascript:void(0)" v-bind:href="url">百度一下</a>
        <a href="javascript:void(0)" :href="url">百度一下</a>
    </div>
    <script src="./js/dev/vue.js"></script>
    <script>
        const app = new Vue({
            el: 'div',
            data: {
                url: 'http://www.baidu.com'
            }
        })
    </script>
</body>

</html>